Bump default plugin versions to latest stable 3.x - #13077
Draft
ascheman wants to merge 1 commit into
Draft
Conversation
Refresh the compiled-in default lifecycle plugin versions to the latest stable 3.x releases (Maven 3+4 compatible, JDK 8+). The 4.x lines hardcode these as Java constants with no refresh mechanism and had drifted to ~mid-2024 values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 4.x lines bind a fixed version to every plugin of the
default,cleanandsitelifecycles, hardcoded as Java constants in two files:impl/maven-core/src/main/java/org/apache/maven/lifecycle/providers/packaging/AbstractLifecycleMappingProvider.java(11 plugins)impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java(clean, site)Unlike the 3.10 line (which inherits
version.maven-*from the ASF parent), these constants have no refresh mechanism and had drifted to ~mid-2024 values. This bumps all 13 to the latest stable 3.x:All targets are the latest
< 4.0.0release on Central, each requiring Maven >= 3.6.3 and Java >= 8, so they are safe as defaults on this line; the 3.x plugin lines keep the Maven 3+4 compatibility layer, delivering accumulated fixes without breaking changes.Notably
maven-compiler-pluginmoves off 3.13.0, which carries MCOMPILER-592 (emptyproject.build.outputTimestamp->IndexOutOfBoundsException, fixed in 3.14.0) — reachable with default settings.Follow-up (separate): these constants live in two files with no bot-visible coordinate, so nothing keeps them current. Converging them onto the 3.10 filtered-
plugin-versions.propertiesmechanism would let Dependabot propose future bumps.